package com.huo.base.threadtest;

public class NymRunnableTest {


    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("线程执行run方法体");
            }
        };
        Thread thread = new Thread( runnable );
        thread.start();
        thread.run(); //正常该行不要，导致run方法执行了2次。正常thread.start()执行完会执行run方法的
        System.out.println("线程进入就绪状态");

    }
}
